package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.SjRkinfor;
import com.ruoyi.gcgl.mapper.SjRkinforMapper;
import com.ruoyi.gcgl.service.ISjRkinforService;

/**
 * 入库信息登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-04
 */
@Service
public class SjRkinforServiceImpl implements ISjRkinforService 
{
    @Autowired
    private SjRkinforMapper sjRkinforMapper;

    /**
     * 查询入库信息登记
     * 
     * @param id 入库信息登记主键
     * @return 入库信息登记
     */
    @Override
    public SjRkinfor selectSjRkinforById(Long id)
    {
        return sjRkinforMapper.selectSjRkinforById(id);
    }

    /**
     * 查询入库信息登记列表
     * 
     * @param sjRkinfor 入库信息登记
     * @return 入库信息登记
     */
    @Override
    public List<SjRkinfor> selectSjRkinforList(SjRkinfor sjRkinfor)
    {
        return sjRkinforMapper.selectSjRkinforList(sjRkinfor);
    }

    /**
     * 新增入库信息登记
     * 
     * @param sjRkinfor 入库信息登记
     * @return 结果
     */
    @Override
    public int insertSjRkinfor(SjRkinfor sjRkinfor)
    {
        return sjRkinforMapper.insertSjRkinfor(sjRkinfor);
    }

    /**
     * 修改入库信息登记
     * 
     * @param sjRkinfor 入库信息登记
     * @return 结果
     */
    @Override
    public int updateSjRkinfor(SjRkinfor sjRkinfor)
    {
        return sjRkinforMapper.updateSjRkinfor(sjRkinfor);
    }

    /**
     * 批量删除入库信息登记
     * 
     * @param ids 需要删除的入库信息登记主键
     * @return 结果
     */
    @Override
    public int deleteSjRkinforByIds(String ids)
    {
        return sjRkinforMapper.deleteSjRkinforByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除入库信息登记信息
     * 
     * @param id 入库信息登记主键
     * @return 结果
     */
    @Override
    public int deleteSjRkinforById(Long id)
    {
        return sjRkinforMapper.deleteSjRkinforById(id);
    }
}
